Method and apparatus for communicating streaming data in bluetooth-based wireless communication system

ABSTRACT

A method and apparatus for communicating streaming data in a Bluetooth-based wireless communication system is provided. An electronic device according to the present disclosure includes a communication interface configured to perform wireless Bluetooth communication with an external electronic device and a controller configured to control the communication interface, in which the controller is further configured to detect a communication state using a first packet data configuration and communicate with the external electronic device by using a second packet data configuration that is different from the first packet data configuration, based on the communication state.

CROSS-REFERENCE TO RELATED APPLICATION(S) AND CLAIM OF PRIORITY

The present application is related to and claims the priority under 35U.S.C. §119(a) to Korean Application Serial No. 10-2016-0076065, whichwas filed in the Korean Intellectual Property Office on Jun. 17, 2016,the entire content of which is hereby incorporated by reference.

TECHNICAL FIELD

Various embodiments of the present disclosure relate to a method andapparatus for communicating streaming data in a Bluetooth-based wirelesscommunication system.

BACKGROUND

Bluetooth is an industry standard for personal area networks (PAN).Bluetooth is a communication protocol designed to enable systemconfiguration with low power consumption and at low cost using afrequency in a 2.4 GHz band that is an industrial, scientific andmedical (ISM) band.

Bluetooth supports audio streaming technologies, and provides a functionof transmitting audio packets for audio streaming to a counterpartdevice through a radio link. If the audio packet transmission fails dueto various interfaces (e.g., Wireless Fidelity (WiFi), ZigBee, physicalbarriers, etc.) that may affect a Bluetooth band, retransmission of thefailing audio packet is continuously attempted until the counterpartdevice sends an acknowledgement (ACK). In regard to a loss of the audiopacket due to the retransmission, a predetermined amount of data may bebuffered by a buffer of the counterpart device and the buffered data maybe played back for a transmission failure during a short period, thuspreventing sound discontinuation.

Compensation for the audio packet loss using the buffer in aconventional Bluetooth technology may solve the problem of theshort-period transmission failure, but in case of continuoustransmission failures due to continuous hindrances, i.e., various causes(e.g., a connection distance increase, radio frequency (RF) interferencefrom an obstacle, etc.), a packet loss beyond a limit of the buffercauses a loss of a sound source, resulting in sound discontinuation. Inaddition, audio packet retransmission continuously occupies a time slot,exerting a negative influence on an RF environment of other RF devices(e.g., WiFi, Bluetooth low energy (BLE), ZigBee, etc.).

The above information is presented as background information only toassist with an understanding of the present disclosure. No determinationhas been made, and no assertion is made, as to whether any of the abovemight be applicable as prior art with regard to the present disclosure.

SUMMARY

To address the above-discussed deficiencies, it is an object to providea method and apparatus for communicating streaming data in aBluetooth-based wireless communication system, by which a packet dataconfiguration related to audio packet transmission is dynamicallydetermined or changed based on various wireless interface environmentsor device environments that may affect a radio link environment ofBluetooth, thereby maintaining optimal audio streaming quality.

According to various embodiments of the present disclosure, there isprovided an electronic device including a communication interfaceconfigured to perform wireless Bluetooth communication with an externalelectronic device and a controller configured to control thecommunication interface, in which the controller is further configuredto detect a communication state using a first packet data configurationand communicate with the external electronic device by using a secondpacket data configuration that is different from the first packet dataconfiguration, based on the communication state.

According to various embodiments of the present disclosure, there isprovided a method for communicating packet data based on Bluetooth, themethod including detecting a communication state using a first packetdata configuration and communicating with an external electronic deviceby using a second packet data configuration that is different from thefirst packet data configuration, based on the communication state.

Other aspects, advantages, and salient features of the disclosure willbecome apparent to those skilled in the art from the following detaileddescription, which, taken in conjunction with the annexed drawings,discloses exemplary embodiments of the disclosure.

Before undertaking the DETAILED DESCRIPTION below, it may beadvantageous to set forth definitions of certain words and phrases usedthroughout this patent document: the terms “include” and “comprise,” aswell as derivatives thereof, mean inclusion without limitation; the term“or,” is inclusive, meaning and/or; the phrases “associated with” and“associated therewith,” as well as derivatives thereof, may mean toinclude, be included within, interconnect with, contain, be containedwithin, connect to or with, couple to or with, be communicable with,cooperate with, interleave, juxtapose, be proximate to, be bound to orwith, have, have a property of, or the like; and the term “controller”means any device, system or part thereof that controls at least oneoperation, such a device may be implemented in hardware, firmware orsoftware, or some combination of at least two of the same. It should benoted that the functionality associated with any particular controllermay be centralized or distributed, whether locally or remotely.Definitions for certain words and phrases are provided throughout thispatent document, those of ordinary skill in the art should understandthat in many, if not most instances, such definitions apply to prior, aswell as future uses of such defined words and phrases.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present disclosure and itsadvantages, reference is now made to the following description taken inconjunction with the accompanying drawings, in which like referencenumerals represent like parts:

FIG. 1 illustrates an example electronic device in a network environmentaccording to various embodiments of the present disclosure;

FIG. 2 illustrates another example electronic device according tovarious embodiments of the present disclosure;

FIG. 3 illustrates an example programming module according to variousembodiments of the present disclosure;

FIG. 4 illustrates an example electronic device and an externalelectronic device in a Bluetooth-based wireless communication systemaccording to various embodiments of the present disclosure;

FIG. 5 illustrates an example protocol stack of Bluetooth according tovarious embodiments of the present disclosure;

FIG. 6 illustrates an example an electronic device that communicatesstreaming data in a Bluetooth-based wireless communication systemaccording to various embodiments of the present disclosure;

FIG. 7 illustrates an example method for determining a packet dataconfiguration based on a communication state for a packet datatransmission according to various embodiments of the present disclosure;

FIG. 8 illustrates another example method for determining a packet dataconfiguration based on a communication state for a packet datatransmission according to various embodiments of the present disclosure;and

FIG. 9 illustrates yet another example method for communicating packetdata in a Bluetooth-based wireless communication system according tovarious embodiments of the present disclosure.

Throughout the drawings, like reference numerals will be understood torefer to like parts, components, and structures.

DETAILED DESCRIPTION

FIGS. 1 through 9, discussed below, and the various embodiments used todescribe the principles of the present disclosure in this patentdocument are by way of illustration only and should not be construed inany way to limit the scope of the disclosure. Those skilled in the artwill understand that the principles of the present disclosure may beimplemented in any suitably arranged electronic device.

Hereinafter, various embodiments of the present disclosure will bedisclosed with reference to the accompanying drawings. However,embodiments and terms used therein are not intended to limit the presentdisclosure to particular embodiments, and it should be construed asincluding various modifications, equivalents, and/or alternativesaccording to the embodiments of the present disclosure. In regard to thedescription of the drawings, like reference numerals refer to likeelements. The singular forms are intended to include the plural forms aswell, unless the context clearly indicates otherwise. In the presentdisclosure, an expression such as “A or B,” “at least one of A or/andB,” or “one or more of A or/and B” may include all possible combinationsof together listed items. Expressions such as “first,” “second,”“primarily,” or “secondary,” used herein may represent various elementsregardless of order and/or importance and do not limit correspondingelements. When it is described that an element (such as a first element)is “operatively or communicatively coupled with/to” or “connected” toanother element (such as a second element), the element can be directlyconnected to the other element or can be connected to the other elementthrough another element (e.g., a third element).

An expression “configured to (or set)” used in the present disclosuremay be replaced with, for example, “suitable for,” “having the capacityto,” “adapted to,” “made to,” “capable of,” or “designed to” accordingto a situation. Alternatively, in some situation, an expression“apparatus configured to” may mean that the apparatus “can” operatetogether with another apparatus or component. For example, a phrase “aprocessor configured (or set) to perform A, B, and C” may be a dedicatedprocessor (e.g., an embedded processor) for performing a correspondingoperation or a generic-purpose processor (such as a central processingunit (CPU) or an application processor) that can perform a correspondingoperation by executing at least one software program stored at a memorydevice.

An electronic device according to various embodiments of the presentdisclosure may include at least one of, for example, a smartphone, atablet personal computer (PC), a mobile phone, a video phone, anelectronic-book (e-book) reader, a desktop PC, a laptop PC, a netbookcomputer, a workstation, a server, a personal digital assistant (PDA), aportable multimedia player (PMP), an MP3 player, a mobile medicalequipment, a camera, and a wearable device. Examples of the wearabledevice may include at least one of an accessory type (e.g., a watch, aring, a bracelet, an anklet, a necklace, glasses, contact lenses,head-mounted device (HIVID), etc.), a fabric or cloth-integrated type(e.g., electronic clothing, etc.), a body-attached type (e.g., a skinpad, a tattoo, etc.), a body implanted type (e.g., an implantablecircuit, etc.), and so forth. In some embodiments, the electronic devicemay include, for example, a television (TV), a digital video disk (DVD)player, audio equipment, a refrigerator, an air conditioner, a vacuumcleaner, an oven, a microwave oven, a laundry machine, an air cleaner, aset-top box, a home automation control panel, a security control panel,a TV box (e.g., HomeSync™ of Samsung, TV™ of Apple, or TV™ of Google), agame console, an electronic dictionary, an electronic key, a camcorder,and an electronic frame.

In other embodiments, the electronic device may include at least one ofvarious medical equipment (for example, magnetic resonance angiography(MRA), magnetic resonance imaging (MRI), computed tomography (CT), animaging device, or an ultrasonic device), a navigation system, a globalpositioning system (GPS) receiver, an event data recorder (EDR), aflight data recorder (FDR), a vehicle infotainment device, electronicequipment for ships (e.g., a navigation system and gyro compass forships), avionics, a security device, a vehicle head unit, an industrialor home robot, an automatic teller's machine (ATM), a point of sales(POS), Internet of things (e.g., electric bulbs, various sensors,electricity or gas meters, sprinkler devices, fire alarm devices,thermostats, streetlights, toasters, exercise machines, hot-water tanks,heaters, boilers, and so forth). According to some embodiments, theelectronic device may include a part of furniture, building/structure ora part of a vehicle, an electronic board, an electronic signaturereceiving device, a projector, and various measuring instruments (e.g.,a water, electricity, gas, electric wave measuring device, etc.).According to various embodiments, the electronic device may be flexibleor may be a combination of two or more of the above-described variousdevices. The electronic device according to an embodiment of the presentdisclosure is not limited to the aforementioned devices. Herein, theterm “user” used in various embodiments of the present disclosure mayrefer to a person who uses the electronic device or a device using theelectronic device.

Referring to FIG. 1, an electronic device 101 in a network environment100 according to various embodiments of the present disclosure isdisclosed. The electronic device 101 may include a bus 110, a processor120, a memory 130, an input/output (I/O) interface 150, a display 160,and a communication interface 170. According to some embodiments, theelectronic device 101 may omit at least one of the foregoing elements ormay further include other elements. The bus 110 may include a circuitfor connecting, e.g., the elements 110 to 170 and deliveringcommunication (e.g., a control message or data) between the elements 110to 170. The processor 120 may include one or more of a centralprocessing unit (CPU), an application processor (AP), and acommunication processor (CP). The processor 120 performs operations ordata processing for control and/or communication of, for example, atleast one other elements of the electronic device 101.

The memory 130 may include a volatile and/or nonvolatile memory. Thememory 130 may store, for example, instructions or data associated withat least one other elements of the electronic device 101. According toan embodiment of the present disclosure, the memory 130 may storesoftware and/or a program 140. The program 140 may include at least oneof, for example, a kernel 141, middleware 143, an applicationprogramming interface (API) 145, and/or an application program (or“application”) 147, and the like. At least some of the kernel 141, themiddleware 143, and the API 145 may be referred to as an operatingsystem (OS). The kernel 141 may control or manage, for example, systemresources (e.g., the bus 110, the processor 120, the memory 130, etc.)used to execute operations or functions implemented in other programs(e.g., the middleware 143, the API 145, or the application program 147).The kernel 141 provides an interface through which the middleware 143,the API 145, or the application program 147 accesses separate componentsof the electronic device 101 to control or manage the system resources.

The middleware 143 may work as an intermediary for allowing, forexample, the API 145 or the application program 147 to exchange data incommunication with the kernel 141. In addition, the middleware 143 mayprocess one or more task requests received from the application program147 based on priorities. For example, the middleware 143 may give apriority for using a system resource (e.g., the bus 110, the processor120, the memory 130, etc.) of the electronic device 101 to at least oneof the application programs 147, and may process the one or more taskrequests. The API 145 is an interface used for the application 147 tocontrol a function provided by the kernel 141 or the middleware 143, andmay include, for example, at least one interface or function (e.g., aninstruction) for file control, window control, image processing orcharacter control. The I/O interface 150 may deliver, for example, aninstruction or data input from a user or another external device toother component(s) of the electronic device 101, or output aninstruction or data received from other component(s) of the electronic101 to a user or another external device.

The display 160 may include, for example, a liquid crystal display(LCD), a light emitting diode (LED) display, an organic light emittingdiode (OLED) display, a microelectromechanical system (MEMS) display, oran electronic paper display. The display 160 may, for example, displayvarious contents (e.g., a text, an image, video, an icon, and/or asymbol, etc.) to users. The display 160 may include a touch screen, andreceives a touch, a gesture, proximity, or a hovering input, forexample, by using an electronic pen or a part of a body of a user. Thecommunication interface 170 establishes communication between theelectronic device 101 and an external device (e.g., a first externalelectronic device 102, a second external electronic device 104, or aserver 106). For example, the communication interface 170 may beconnected to a network 162 through wireless communication or wiredcommunication to communicate with an external device (e.g., the secondexternal electronic device 104 or the server 106).

The wireless communication may include cellular communication using atleast one of long term evolution (LTE), LTE-Advanced (LTE-A), codedivision multiple access (CDMA), wideband CDMA (WCDMA), a universalmobile telecommunication system (UMTS), wireless broadband (WiBro), orglobal system for mobile communications (GSM)). According to anembodiment, the wireless communication may include at least one ofWireless Fidelity (WiFi), Bluetooth, Bluetooth Low Energy (BLE), ZigBee,near field communication (NFC), magnetic secure transmission (MST),radio frequency (RF), and a body area network (BAN). According to anembodiment, the wireless communication may include GNSS. The GNSS mayinclude, for example, at least one of a global positioning system (GPS),a global navigation satellite system (Glonass), a Beidou navigationsatellite system (“Beidou”), and Galileo, the European globalsatellite-based navigation system. Hereinbelow, “GPS” may be usedinterchangeably with “GNSS”. The wired communication may include, forexample, at least one of universal serial bus (USB), high definitionmultimedia interface (HDMI), recommended standard 232 (RS-232), powerline communication, and plain old telephone service (POTS). The network162 may include a telecommunications network, for example, at least oneof a computer network (e.g., a local area network (LAN) or a wide areanetwork (WAN)), Internet, and a telephone network.

Each of the first external electronic device 102 and the second externalelectronic device 104 may be a device of the same type as or a differenttype than the electronic device 101. According to various embodiments ofthe present disclosure, some or all of operations performed by theelectronic device 101 may be performed in another electronic device or aplurality of electronic devices (e.g., the electronic device 102 or 104,or the server 106). According to an embodiment of the presentdisclosure, when the electronic device 101 has to perform a function ora service automatically or at a request, the electronic device 101 mayrequest another device (e.g., the electronic devices 102 or 104 or theserver 106) to perform at least some functions associated with thefunction or the service instead of or in addition to executing thefunction or the service. The other electronic device (e.g., theelectronic device 102 or 104 or the server 106) may execute therequested function or additional function and deliver the executionresult to the electronic device 101. The electronic device 101 may thenprocess or further process the received result to provide the requestedfunction or service. To this end, for example, cloud computing,distributed computing, or client-server computing may be used.

FIG. 2 illustrates an example electronic device 201 according to variousembodiments of the present disclosure. The electronic device 201 mayform the entire electronic device 101 illustrated in FIG. 1 or a part ofthe electronic device 101 illustrated in FIG. 1. The electronic device201 may include one or more processors (e.g., application processors(APs)) 210, a communication interface 220, a subscriber identificationmodule (SIM) 224, a memory 230, a sensor 240, an input device 250, adisplay 260, an interface 270, an audio 280, a camera 291, a powermanagement 295, a battery 296, an indicator 297, and a motor 298. Theprocessor 210 controls multiple hardware or software componentsconnected to the processor 210 by driving an operating system (OS) or anapplication program, and performs processing and operations with respectto various data. The processor 210 may be implemented with, for example,a system on chip (SoC). According to an embodiment of the presentdisclosure, the server 210 may include a graphic processing unit (GPU)and/or an image signal processor. The processor 210 may include at leastsome of the elements illustrated in FIG. 2 (e.g., the cellular interface221). The processor 210 loads an instruction or data received from atleast one of other elements (e.g., a non-volatile memory) into avolatile memory to process the instruction or data, and stores resultdata in the non-volatile memory.

The communication interface 220 may have a configuration that is thesame as or similar to the communication interface 170. The communicationinterface 220 may include, for example, the cellular interface 221, aWiFi interface 223, a Bluetooth (BT) module 225, a GNSS interface 227, anear field communication (NFC) module 228, and a radio frequency (RF)module 229. The cellular interface 221 may provide, for example, a voicecall, a video call, a text service, or an Internet service over acommunication network. According to an embodiment, the cellularinterface 221 identifies and authenticates the electronic device 201 ina communication network by using the SIM 224 (e.g., a SIM card).According to an embodiment, the cellular interface 221 performs at leastone of functions that may be provided by the processor 210. According toan embodiment, the cellular interface 221 may include a communicationprocessor (CP). According to some embodiment, at least some (e.g., twoor more) of the cellular interface 221, the WiFi interface 223, the BTinterface 225, the GNSS interface 227, and the NFC interface 228 may beincluded in one integrated chip (IC) or IC package. The RF 229 may, forexample, transmit and receive a communication signal (e.g., an RFsignal). The RF 229 may include a transceiver, a power amp module (PAM),a frequency filter, a low noise amplifier (LNA), or an antenna.According to another embodiment, at least one of the cellular interface221, the WiFi interface 223, the BT interface 225, the GNSS interface227, and the NFC interface 228 may transmit and receive an RF signalthrough the separate RF. The SIM 224 may, for example, include a cardincluding an SIM or an embedded SIM, and may include uniqueidentification information (e.g., an integrated circuit card identifier(ICCID) or subscriber information (e.g., an international mobilesubscriber identity (IMSI)).

The memory 230 (e.g., the memory 130) may, for example, include aninternal memory 232 and/or an external memory 234. The internal memory232 may, for example, include at least one of a volatile memory (e.g.,dynamic random access memory (DRAM), static RAM (SRAM), synchronousdynamic RAM (SDRAM), etc.), and a non-volatile memory (e.g., one timeprogrammable read only memory (OTPROM), programmable ROM (PROM),erasable and programmable ROM (EPROM), electrically erasable andprogrammable ROM (EEPROM), etc.), mask ROM, flash ROM, a flash memory,and a solid state drive (SSD). The external memory 234 may furtherinclude flash drive, for example, compact flash (CF), secure digital(SD), micro-SD, mini-SD, extreme Digital (xD), a multi-media card (MMC),or a memory stick. The external memory 234 may be functionally orphysically connected with the electronic device 201 through variousinterfaces.

The sensor 240 measures physical quantity or senses an operation stateof the electronic device 201 to convert the measured or sensedinformation into an electric signal. The sensor 240 may, for example,include at least one of a gesture sensor 240A, a gyro sensor 240B, apressure sensor 240C, a magnetic sensor 240D, an acceleration sensor240E, a grip sensor 240F, a proximity sensor 240G, a color sensor 240H(e.g., RGB sensor), a biometric sensor 240I, a temperature/humiditysensor 240J, an illumination sensor 240K, and a ultraviolet (UV) sensor240M. Additionally or alternatively, the sensor 240 may include anE-nose sensor (not shown), an electromyography (EMG) sensor (not shown),an electroencephalogram (EEG) sensor (not shown), an electrocardiogram(ECG) sensor (not shown), an infrared (IR) sensor, an iris sensor,and/or a fingerprint sensor. The sensor 240 may further include acontrol circuit for controlling at least one sensor included therein. Insome embodiment, the electronic device 201 may further include aprocessor configured to control the sensor 240 as part of or separatelyfrom the processor 210, to control the sensor 240 during a sleep stateof the processor 210.

The input device 250 may include, for example, a touch panel 252, a(digital) pen sensor 254, a key 256, or an ultrasonic input device 258.The touch panel 252 may use at least one of a capacitive type, aresistive type, an IR type, or an ultrasonic type. The touch panel 252may further include a control circuit. The touch panel 252 may furtherinclude a tactile layer to provide tactile reaction to the user. The(digital) pen sensor 254 may include a recognition sheet which is a partof the touch panel 252 or a separate recognition sheet. The key 256 mayalso include a physical button, an optical key, or a keypad. Theultrasonic input device 258 senses ultrasonic waves generated by aninput means through a microphone (e.g., the microphone 288) and checksdata corresponding to the sensed ultrasonic waves.

The display 260 (e.g., the display 160) may include a panel 262, ahologram device 264, a projector 266, and/or a control circuit forcontrolling them. The panel 262 may be implemented to be flexible,transparent, or wearable. The panel 262 may be configured with the touchpanel 252 in one module. The hologram device 264 shows a stereoscopicimage in the air by using interference of light. The projector 266displays an image onto an external screen through projection of light.The screen may be positioned inside or outside the electronic device201. According to an embodiment, the interface 270 may include ahigh-definition multimedia interface (HDMI) 272, a universal serial bus(USB) 274, an optical communication 276, or a D-subminiature 278. Theinterface 270 may be included in the communication interface 170illustrated in FIG. 1. Additionally or alternatively, the interface 270may include, for example, an MHL interface, an SD card/MMC interface, oran IrDA standard interface.

The audio 280 bi-directionally converts sound and an electric signal. Atleast one element of the audio 280 may be included in the input/outputinterface 145 illustrated in FIG. 1. The audio 280 processes soundinformation input or output through the speaker 282, the receiver 284,the earphone 286, or the microphone 288. The camera 291 is, for example,a device capable of capturing a still image or a moving image, andaccording to an embodiment, may include one or more image sensors (e.g.,a front sensor or a rear sensor), a lens, an image signal processor(ISP), or a flash (e.g., an LED, a xenon lamp, etc.). The powermanagement 295 manages power of the electronic device 201. According toan embodiment, the power management 295 may include a power managementintegrated circuit (PMIC), a charger IC, or a battery fuel gauge. ThePMIC may have a wired and/or wireless charging scheme. The wirelesscharging scheme includes a magnetic-resonance type, a magnetic inductiontype, and an electromagnetic type, and for wireless charging, anadditional circuit, for example, a coil loop, a resonance circuit, or arectifier may be further included. The battery gauge measures theremaining capacity of the battery 296 or the voltage, current, ortemperature of the battery 296 during charging. The battery 296 mayinclude a rechargeable battery and/or a solar battery.

The indicator 297 displays a particular state, for example, a bootingstate, a message state, or a charging state, of the electronic device201 or a part thereof (e.g., the processor 210). The motor 298 convertsan electric signal into mechanical vibration or generates vibration or ahaptic effect. The electronic device 201 may include a device forsupporting the mobile TV (e.g., a GPU) to process media data accordingto a standard such as digital multimedia broadcasting (DMB), digitalvideo broadcasting (DVB), or mediaFlo™. Each of the foregoing elementsdescribed herein may be configured with one or more components, names ofwhich may vary with a type of the electronic device. In variousembodiments, some components of the electronic device (e.g., theelectronic device 201) may be omitted or may further include otherelements, and some of the components may be coupled to form one entityand identically perform functions of the components before beingcoupled.

FIG. 3 illustrates an example programming module according to variousembodiments of the present disclosure. According to an embodiment, aprogramming module 310 (e.g., the program 140) may include an OS forcontrolling resources associated with an electronic device (e.g., theelectronic device 101) and/or various applications (e.g., theapplication program 147) executed on the OS. The OS may includeAndroid™, iOS™, Windows™, Symbian™, Tizen™, or Bada™ Referring to FIG.3, the programming module 310 may include a kernel 320 (e.g., the kernel141), middleware 330 (e.g., the middleware 143), an applicationprogramming interface (API) 360 (e.g., the API 145), and/or anapplication 370 (e.g., the application program 147). At least a part ofthe programming module 310 may be preloaded on an electronic device ormay be downloaded from an external device (e.g., the vehicle device 102,the electronic device 104, or the server 106).

The kernel 320 may include a system resource manager 321 and/or a devicedriver 323. The system resource manager 321 may perform control,allocation, retrieval of system resources, and so forth. According to anembodiment, the system resource manager 321 may include a processmanagement unit, a memory management unit, or a file system managementunit. The device driver 323 may include, for example, a display driver,a camera driver, a Bluetooth driver, a shared memory driver, a USBdriver, a keypad driver, a WiFi driver, an audio driver, or aninter-process communication (IPC) driver. The middleware 330 may includeprovide functions that the application 370 commonly requires or providevarious functions to the application 370 through the API 360 to allowthe application 370 to use a limited system resource in an electronicdevice. According to an embodiment, the middleware 330 may include atleast one of a runtime library 335, an application manager 341, a windowmanager 342, a multimedia manager 343, a resource manager 344, a powermanager 345, a database manager 346, a package manager 347, aconnectivity manager 348, a notification manager 349, a location manager350, a graphic manager 351, and a security manager 352.

The runtime library 335 may include a library module that a compileruses to add a new function through a programming language while theapplication 370 is executed. The runtime library 335 performsinput/output management, memory management, or calculation functionprocessing. The application manager 341 manages a life cycle of theapplications 370. The window manager 342 manages a GUI resource used ina screen. The multimedia manager 343 recognizes a format necessary forplaying media files and performs encoding or decoding on a media file byusing a codec appropriate for a corresponding format. The resourcemanager 344 manages a source code or a memory space of the applications370. The power manager 345 manages a battery or power and provides powerinformation necessary for an operation of the electronic device.According to an embodiment, the power manager 345 may operate with basicinput/output system (BIOS). The database manager 346 generates, searchesor changes a database used for at least one application among theapplications 370. The package manager 347 manages the installation orupdate of an application distributed in a package file format.

The connectivity manager 348 manages a wireless connection. Thenotification manager 349 provides an event, e.g., an arriving message,an appointment, proximity notification, etc. The location manager 350manages location information of an electronic device. The graphicmanager 351 manages a graphic effect to be provided to a user or a userinterface relating thereto. The security manager 352 provides systemsecurity or user authentication. According to an embodiment, themiddleware 330 may further include a telephony manager for managing avoice or video call function of the electronic device or a middlewaremodule forming a combination of functions of the above-describedcomponents. According to an embodiment, the middleware 330 provides amodule specified for each type of an OS. Additionally, the middleware330 may delete some of existing elements or add new elementsdynamically. The API 360 may be provided as a set of API programmingfunctions with a different configuration according to the OS. In thecase of Android or iOS, for example, one API set may be provided by eachplatform, and in the case of Tizen, two or more API sets may beprovided.

The application 370 may include one or more applications capable ofproviding a function, for example, a home application 371, a dialerapplication 372, a short messaging service/multimedia messaging service(SMS/MMS) application 373, an instant message (IM) application 374, abrowser application 375, a camera application 376, an alarm application377, a contact application 378, a voice dial application 379, an e-mailapplication 380, a calendar application 381, a media player application382, an album application 383, a clock application 384, a health careapplication (e.g., an application for measuring an exercise amount, ablood sugar, etc.), or an environment information providing application(e.g., an application for providing air pressure, humidity, ortemperature information or the like). According to an embodiment, theapplication 370 may include an information exchange applicationsupporting information exchange between the electronic device and anexternal electronic device. The information exchange application mayinclude, for example, a notification relay application for transferringspecific information to the external electronic device or a devicemanagement application for managing the external electronic device. Forexample, the notification relay application may deliver notificationinformation generated in another application of the electronic device toan external electronic device or may receive notification informationfrom the external electronic device and provide the notificationinformation to the user. The device management application may manage(e.g., install, remove, or update) a function (e.g., turn on/turn off ofan external electronic device (or a part thereof) or control ofbrightness (or resolution) of a display) of an external devicecommunicating with the electronic device, a service provided by anapplication operating in an external electronic device or provided bythe external electronic device (e.g., a call service or a messageservice). According to an embodiment, the application 370 may include anapplication (e.g., device health care application of mobile medicalequipment) designated according to an attribute of the externalelectronic device. According to an embodiment, the application 370 mayinclude an application received from the external electronic device. Theat least a part of the programming module 310 may be implemented (e.g.,executed) by software, firmware, hardware (e.g., the processor 210), ora combination of two or more of them, and may include, for example,modules, programs, routines, sets of instructions, or processes forperforming one or more functions.

A term “module” used herein may mean, for example, a unit including oneof or a combination of two or more of hardware, software, and firmware,and may be used interchangeably with terms such as logic, a logic block,a part, or a circuit. The “module” may be a part configured integrally,a minimum unit or a portion thereof performing one or more functions.The “module” may be implemented mechanically or electronically, and mayinclude an application-specific integrated circuit (ASIC) chip,field-programmable gate arrays (FPGAs), and a programmable-logic deviceperforming certain operations already known or to be developed. At leasta part of an apparatus (e.g., modules or functions thereof) or a method(e.g., operations) according to various embodiments may be implementedwith an instruction stored in a computer-readable storage medium (e.g.,the memory 130) in the form of a programming module. When theinstructions are executed by a processor (for example, the processor120), the processor may perform functions corresponding to theinstructions. The computer-readable recording medium includes hard disk,floppy disk, or magnetic media (e.g., a magnetic tape, optical media(e.g., compact disc read only memory (CD-ROM) or digital versatile disc(DVD), magneto-optical media (e.g., floptical disk), an embedded memory,and so forth. The instructions may include a code generated by acompiler or a code executable by an interpreter. Modules or programmingmodules according to various embodiments of the present disclosure mayinclude one or more of the foregoing elements, have some of theforegoing elements omitted, or further include additional otherelements. Operations performed by the modules, the programming modulesor other elements according to various embodiments may be executed in asequential, parallel, repetitive or heuristic manner, or at least someof the operations may be executed in different orders, and may beomitted, or other operations may be added.

FIG. 4 illustrates an example electronic device and an externalelectronic device in a Bluetooth-based wireless communication systemaccording to various embodiments of the present disclosure, and FIG. 5is a view for describing a protocol stack of Bluetooth according tovarious embodiments of the present disclosure.

Referring to FIG. 4, an electronic device 401 generates packet datahaving a compressed L2CAP header structure for transmission of audiopacket data and transmits the generated packet data to an externalelectronic device 402. In Bluetooth, electronic devices may establish alink in a master-slave manner using a piconet scheme for communication.In the piconet scheme, one electronic device 401 (e.g., a master device)may configure a wireless network with multiple external electronicdevices 402 (e.g., slave devices) to transmit and receive packet datatherebetween.

To help the understanding of the present disclosure, a structure of aprotocol stack of Bluetooth will be described first.

FIG. 5 illustrates the Bluetooth protocol stack, which is assumed to bea protocol stack included in the electronic device 401 (e.g., the masterdevice), but a protocol stack included in the external electronic device402 (e.g., the slave device) may be the same as the protocol stackillustrated in FIG. 5.

Referring to FIG. 5, an RF 501 actually controls a radio transceiver,and more specifically, performs frequency hopping over 79 channels 1600times per second with a bandwidth of 1 MHz in an ISM band of 2.4GHz-2.4835 GHz, modulates data using a Gaussian frequency shift keying(G-FSK) modulation scheme, and controls packet data and audio data,which are modulated into digital forms, to be transmitted and receivedusing a time division duplex (TDD) scheme for duplex communication.

A baseband 502, which is a connection management protocol of a physicallayer, is in charge of error recovery, logical channel management,frequency hopping algorithm, security, and so forth. There areconnection types of the physical layer: an SCO link having noreliability and an ACL link guaranteeing reliability. A criterion of alink based on reliability may depend on data retransmission. A maximumof seven devices are connected through one piconet, and one of the sevendevices is a master for performing piconet management, such as frequencyhopping pattern generation, and so forth, and the other devices areslaves. Circuit and packet switching are supported, and each packet istransmitted at a different hopping frequency. Packet transmission isgenerally performed in one slot, but in some cases, may use three orfive slots. Three voice channels may be synchronously transmitted at 64kbps, and data may be asynchronously transmitted at 723 kbps/57.6 kbpsor synchronously transmitted at 432.6 kbps.

A link manager protocol (LMP) 503, which is a protocol that manages linkestablishment between Bluetooth devices, provides a link control servicesuch as automatic repeated request (ARQ) for requesting retransmissionin case of reception of a baseband packet having an error or forwarderror correction (FEC) for tracking and modifying the number of biterrors of data.

Since a logical link control and adaptation protocol (L2CAP) 504 doesnot support identifiers for identifying higher layers or levels, theL2CAP 504 performs multiplexing to identify a higher layer such as aserial cable emulation protocol (RFCOMM), a service discovery protocol(SDP), etc., and segments a packet having a large size used in a higherlayer into a size available in a baseband layer or reassembles packetsused in multiple baseband layers into a size of a packet used in ahigher layer. The L2CAP 504 is a protocol for implementing a quality ofservice (QoS) of data.

In an RFCOMM/SDP 505, RFCOMM is a protocol for emulating an RS-232 9-pinserial port based on TS 07.10 of the European TelecommunicationsStandards Institute (ETSI), and SDP is a protocol for exchanginginformation about a service available in a connected Bluetooth deviceand characteristics of the available service.

Applications 506 control Bluetooth applications. A Bluetooth applicationrefers to an application to which a Bluetooth technique established inthe Special Interest Group (SIG) is applied.

Various embodiments of the present disclosure propose a scheme forcommunicating streaming data in a Bluetooth-based wireless communicationsystem.

Conventionally, a transmission failure is compensated for according toan ACL packet retransmission algorithm defined in Bluetoothspecifications, and such a compensation algorithm merely detects apacket error based on a success or a failure in transmission of an ACLpacket and on cyclic redundancy check (CRC) to perform retransmission ofa packet including an error, without referring to information forguaranteeing a QoS, and thus is not suitable for audio streaming datatransmission requiring real-time property.

The present disclosure proposes, for transmission of audio streamingdata based on Bluetooth, an algorithm for detecting a communicationstate of audio packet data and optimally determining a packettransmission rate and the number of frames per packet based on thedetected communication state, or an audio compressed frame sizereflecting characteristics of various audio codecs, thereby optimizingthe quality of sound provided by an audio streaming service. This isdescribed below in greater detail.

With reference to FIG. 6, a description will be made of an electronicdevice that communicates streaming data in a Bluetooth-based wirelesscommunication system according to various embodiments of the presentdisclosure.

FIG. 6 illustrates an example electronic device that communicatesstreaming data in a Bluetooth-based wireless communication systemaccording to various embodiments of the present disclosure. In FIG. 6, acommunication state detector 604 for detecting a communication state ofaudio packet data and a controller 601 for controlling transmission ofaudio packet data based on the detected communication state are added tothe Bluetooth stack structure of FIG. 5.

Referring to FIG. 6, an electronic device may be roughly divided into ahost part that at least includes the controller 601, an audio codec 602,and an L2CAP 603 and a controller part that at least includes thecommunication state detector 604, a buffer 605, and an RF 606. The hostpart and the controller part exchange data through a host controllerinterface (HCI).

The controller 601 performs overall control over an operation ofcommunicating packet data based on Bluetooth. The controller 601controls an operation of configuring Bluetooth connection between anelectronic device and an external electronic device. The controller 601configures a first packet data configuration through negotiation forBluetooth communication between the electronic device and the externalelectronic device. The first packet data configuration is aconfiguration for transmission of initial packet data between theelectronic device and the external electronic device, and may include atleast one of a packet transmission rate of packet data, the number offrames per packet, or an audio compressed frame size reflectingcharacteristics of a specific audio codec.

According to various embodiments, the controller 601, duringtransmission of packet data using the first packet data configuration,receives communication state information detected by the communicationstate detector 604, and determines a second packet data configurationthat is different from the first packet data configuration, based on thereceived communication state information. The second packet dataconfiguration is a configuration that changes at least one of a packettransmission rate of packet data, the number of frames per packet, or anaudio compressed frame size reflecting characteristics of a specificaudio codec differently than in the first packet data configuration totransmit the packet data in an optimal state, in case of change to acommunication state that is different from a previous communicationstate. The second packet data configuration may be determined byselecting any one of a plurality of preset packet data configurationsaccording to the communication state.

According to various embodiments, the controller 601 may determine aretransmission rate for packet data transmitted with the first packetdata configuration using information received from the communicationstate detector 604 and detect the communication state based on thedetermined retransmission rate.

According to various embodiments, the controller 601 may determine astate of the buffer 605 of the electronic device or detect thecommunication state based on the determined state of the buffer 605,during transmission of packet data with the first packet dataconfiguration using information received from the communication statedetector 604.

According to various embodiments, the controller 601 may determinewhether a request for stopping packet data transmission is received fromthe external electronic device and detect the communication state basedon the determination of whether the request for stopping packet datatransmission is received, during transmission of packet data with thefirst packet data configuration using information received from thecommunication state detector 604.

According to various embodiments, the controller 601 may determine stateinformation regarding a channel in which packet data is transmitted withthe first packet data configuration using information received from thecommunication state detector 604, and detect the communication statebased on the determined state information.

According to various embodiments, the controller 601 may determine apacket transmission rate of transmittable packet data based on thecommunication state and determine the second packet data configurationaccording to the determined packet transmission rate. In this case, thecontroller 601 may determine the second packet data configuration basedon whether the communication state continues for a predetermined time.For example, change of the communication state for a short time may bebypassed, and only when the communication state continues for apredetermined time, the second packet data configuration may bedetermined.

The audio codec 602 converts a pulse code modulation (PCM) signal ofaudio data into a digital audio signal, and compresses the digital audiosignal to a predetermined frame size. The audio codec 602 may beincluded in the controller 601.

The L2CAP 603 supports higher-level protocol multiplexing, packetsegmentation and reassembly, and conveying of QoS information. The L2CAP603 causes a higher-level protocol and an application to transmit ahigher-level data packet, i.e., an L2CAP service data unit (SDU), andperforms channel flow-specific control through control over a flow and aretransmission mode. The L2CAP 603 provides physical channels referredto as L2CAP channels, each of which operates in a basic L2CAP mode, aflow control mode, and a retransmission mode. According to variousembodiments, the L2CAP 603 may control a data flow with respect to audiodata output from the audio codec 602 for asynchronous communication withan external electronic device through buffering.

The communication state detector 604 detects a communication state ofthe packet data while transmitting the packet data to the externalelectronic device through the RF 606. The communication state detector604 may detect the communication state based on a retransmission rate ofthe packet data, during the transmission of the packet data. Thecommunication state detector 604 may detect the communication statebased on a state of the buffer 605 in which the packet data temporarilywaits, during the transmission of the packet data. For example, thecommunication state detector 604 may detect the communication state byusing the state of the buffer 605, i.e., based on whether there iswaiting packet data in the buffer 605 or the amount of data in thebuffer 605. The communication state detector 604 may detect thecommunication state based on whether a request for stopping packet datatransmission is received from the external electronic device, during thetransmission of the packet data. For example, if there is a large amountof data temporarily stored in a buffer of the external electronicdevice, the external electronic device may send a request fortemporarily stopping packet data transmission, and the communicationstate detector 604 may detect the communication state based on whetherthe request for stopping packet data transmission is received from theexternal electronic device. The communication state detector 604 maydetect the communication state based on state information regarding achannel in which the packet data is transmitted, during the transmissionof the packet data.

The buffer 605 performs buffering to make data to be transmitted to theexternal electronic device wait temporarily, thus enabling asynchronouscommunication.

The RF 606 performs a wireless communication function of the electronicdevice. The RF 606 transmits packet data to the external electronicdevice based on Bluetooth. The RF 606 receives packet data from theexternal electronic device based on Bluetooth. The RF 606 may performvarious types of wired/wireless communication as well as aBluetooth-based communication function. According to variousembodiments, the RF 606 may collect state information regarding achannel in which the packet data is transmitted, and provide thecollected state information to the communication state detector 604.

FIG. 7 illustrates an example method for determining a packet dataconfiguration based on a communication state for packet datatransmission according to various embodiments of the present disclosure,and FIG. 8 illustrates another example method for determining a packetdata configuration based on a communication state for packet datatransmission according to various embodiments of the present disclosure.

Referring to FIG. 7, a communication state for transmitting packet dataaccording to various embodiments of the present disclosure is determinedbased on, as negotiation information exchanged between the electronicdevice and the external electronic device, combined information of atleast one or two of a channel quality driven data rate (CQDDR) value, aretransmission rate for packet data, a buffer state of the electronicdevice, and a buffer state of the external electronic device or arequest from the external electronic device for stopping packet datatransmission based on the buffer state. At least two communicationstates may be defined, and for example, as shown in FIG. 7, there may befour types of communication states: Good, Worse, Bad, and Very Bad.

The communication state of the type ‘Good’ is a state where a wirelessinterface environment is very good and packet data may be communicatedwith a packet data type of 3-DH5. The communication state of the type‘Good’ may be determined based on the CQDDR value received by theelectronic device from the external electronic device. The CQDDR value,which is comprehensive channel information including adaptive frequencyhopping (AFH), a received signal strength indicator (RSSI), a master/aslave, the number of connections, a coex state, and a WiFi operationstate in a Bluetooth communication environment, may be used by theelectronic device to determine a desired packet data type in theexternal electronic device. That is, the communication state of the type‘Good’ may be determined based on the CQDDR value according to whetherthe external electronic device having received the packet data maysupport the packet data type of 3-DH5. If the communication state of thetype is determined based on the CQDDR value that the external electronicdevice does not support 3-DH5, the communication state may be changed tothe type ‘Worse’. According to various embodiments, the communicationstate of the type ‘Good’ may be determined based on a retransmissionrate of packet data together with the CQDDR value or based on theretransmission rate of packet data in place of the CQDDR value.

The communication state of the type ‘Worse’ is a state where thewireless interface environment is good and packet data may becommunicated with a packet data type of 2-DH5. The communication stateof the type ‘Worse’ may be changed in association with the communicationstate of the type ‘Bad’. The communication state of the ‘Worse’ and thecommunication state of the type ‘Bad’ may be determined based on aretransmission rate of packet data. For example, if a retransmissionrate of packet data is less than a preset first threshold value, thecommunication state may be determined to be the type ‘Worse’; if theretransmission rate is greater than or equal to the first thresholdvalue, the communication state may be determined to be the type ‘Bad’.The first threshold value is preset to distinguish the type ‘Bad’ fromthe type ‘Worse’ for the retransmission rate.

The communication state of the type ‘Bad’ is a state where the wirelessinterface environment is bad and packet data may be communicated with apacket data type of 2-DH5 that is identical to the communication state‘Worse’. In the communication state of the type ‘Bad’, a transmissioninterval may be longer than in the communication state of the type‘Worse’, or in some periods, data transmission may be skipped tomaintain a lower bitrate. The communication state of the type ‘Bad’ andthe communication state of the type ‘Very Bad’ may be determined basedon a retransmission rate of packet data. For example, if aretransmission rate of packet data is less than a preset secondthreshold value that is different from the first threshold value, thecommunication state may be determined to be the type ‘Bad’, if theretransmission rate is greater than or equal to the second thresholdvalue, the communication state may be determined to be the type ‘VeryBad’. The first threshold value may be equal to or greater than thesecond threshold value. The communication state of the type ‘Bad’ andthe communication state of the type ‘Very Bad’ may be determined basedon a buffer state of an electronic device and a buffer state of anexternal electronic device or a request for stopping packet datatransmission based on the buffer state. For example, if the buffer stateof the electronic device is ‘empty’ or the request for stopping packetdata transmission is received from the external electronic device, itmay be determined that communication of packet data is being performedbetween the electronic device and the external electronic device, andthus the communication state may be determined to be the type ‘Bad’. Ifthe buffer state of the electronic device is not ‘empty’ and the requestfor stopping packet data transmission is not received from the externalelectronic device, it may be determined that communication of packetdata is not smoothly performed between the electronic device and theexternal electronic device, and thus the communication state may bedetermined to be the type ‘Very Bad’. The communication state of thetype ‘Bad’ and the communication state of the type ‘Very Bad’ may bedetermined based on both a retransmission rate of packet data and abuffer state.

Referring to FIG. 8, the method for determining a packet dataconfiguration according to various embodiments of the present disclosuremay determine or change at least one of a packet transmission rate ofpacket data, the number of frames per packet, and an audio compressedframe size reflecting characteristics of a specific audio codec,depending on a communication state for transmitting the packet data. Thepacket data configuration may be determined by selecting any one of aplurality of preset packet data configurations according to thecommunication state. For example, as shown in FIG. 8, a packet dataconfiguration may be set in advance differently according to the fourtypes of the communication states and may be stored as a table. In FIG.8, when an audio codec is an SBC codec, a communication dataconfiguration is set for each communication state.

For example, in the type ‘Good’, the packet data type may be set to3-DH5, the compressed frame size may be set 123, and the number offrames per packet may be set to 7. In the type ‘Worse’, the packet datatype may be set to 2-DH5, the compressed frame size may be set 109, andthe number of frames per packet may be set to 6. In the type ‘Bad’, thepacket data type may be set to 2-DH5 that is the same as in the type‘Worse’, and for difference than the type ‘Worse’, the compressed framesize may be set to 81 and the number of frames per packet may be set to8. In this case, between the type ‘Worse’ and the type ‘Bad’, there aredifferences in a transmission interval and a bit rate, and packet datamay be communicated optimally for a corresponding communication state.

FIG. 9 illustrates yet another example method for communicating packetdata in a Bluetooth-based wireless communication system according tovarious embodiments of the present disclosure.

With reference to FIG. 9, a description will be made of a method forcommunicating packet data in a Bluetooth-based wireless communicationsystem according to various embodiments of the present disclosure.

In operation 901, an electronic device communicates packet data with anexternal electronic device using a first packet data configuration. Thefirst packet data configuration may be set through negotiation forBluetooth communication between the electronic device and the externalelectronic device. The first packet data configuration is aconfiguration for transmission of initial packet data between theelectronic device and the external electronic device, and may include atleast one of a packet transmission rate of packet data, the number offrames per packet, or an audio compressed frame size reflectingcharacteristics of a specific audio codec.

In operation 902, the electronic device detects a communication stateusing the first packet data configuration. The electronic device maydetect the communication state based on a retransmission rate of thepacket data transmitted using the first packet data configuration. Theelectronic device may detect the communication state based on the bufferstate of the electronic device during the transmission of the packetdata using the first packet data configuration. The electronic devicemay detect the communication state based on whether a request forstopping packet data transmission is received from the externalelectronic device, during the transmission of the packet data using thefirst packet data configuration. The electronic device may detect thecommunication state based on state information regarding a channel inwhich the packet data is transmitted using the first packet dataconfiguration.

In operation 903, the electronic device determines a second packet dataconfiguration based on the communication state. The second packet dataconfiguration may be set differently than the first packet dataconfiguration. The second packet data configuration is a configurationthat changes at least one of a packet transmission rate of packet data,the number of frames per packet, or an audio compressed frame sizereflecting characteristics of a specific audio codec differently than inthe first packet data configuration to transmit the packet data in anoptimal state, in case of change to a communication state that isdifferent from a previous communication state. The second packet dataconfiguration may be determined by selecting any one of a plurality ofpreset packet data configurations according to the communication state.

In operation 904, the electronic device communicates the packet datawith the external electronic device using a second packet dataconfiguration.

According to various embodiments of the present disclosure, by providinga method and apparatus for communicating streaming data in aBluetooth-based wireless communication system, a packet dataconfiguration related to audio packet transmission may be dynamicallydetermined or changed based on various wireless interface environmentsor device environments that may affect a radio link environment ofBluetooth. In this way, an optimal audio streaming quality may bemaintained in a given radio link environment.

Although the present disclosure has been described with an exemplaryembodiment, various changes and modifications may be suggested to oneskilled in the art. It is intended that the present disclosure encompasssuch changes and modifications as fall within the scope of the appendedclaims.

What is claimed is:
 1. An electronic device comprising: a communicationinterface configured to perform wireless Bluetooth communication with anexternal electronic device; and a controller electrically connected withthe communication interface configured to: detect a communication stateusing a first packet data configuration; and communicate the externalelectronic device using a second packet data configuration that isdifferent than the first packet data configuration based on thecommunication state.
 2. The electronic device of claim 1, wherein thefirst packet data configuration and the second packet data configurationcomprise at least one of a packet transmission rate, a number of framesper packet, or a compressed frame size.
 3. The electronic device ofclaim 1, wherein the controller is further configured to detect thecommunication state based on a retransmission rate of packet datatransmitted using the first packet data configuration.
 4. The electronicdevice of claim 1, wherein the controller is further configured to,during a transmission of packet data using the first packet dataconfiguration, detect the communication state based on a state of abuffer in which packet data temporarily waits in the electronic device.5. The electronic device of claim 1, wherein the controller is furtherconfigured to, during a transmission of packet data using the firstpacket data configuration, detect the communication state based onwhether a request for stopping the transmission of the packet data isreceived from the external electronic device.
 6. The electronic deviceof claim 1, wherein the controller is further configured to, during atransmission of packet data using the first packet data configuration,detect the communication state based on a state of a buffer in whichpacket data temporarily waits in the electronic device and on whether arequest for stopping the transmission of the packet data is receivedfrom the external electronic device.
 7. The electronic device of claim1, wherein the controller is further configured to detect thecommunication state based on channel information associated with achannel in which packet data is transmitted using the first packet dataconfiguration.
 8. The electronic device of claim 1, wherein thecontroller is further configured to: determine a packet transmissionrate of transmittable packet data based on the communication state; anddetermine the second packet data configuration based on the determinedpacket transmission rate.
 9. The electronic device of claim 1, whereinthe controller is further configured to determine the second packet dataconfiguration based on whether the communication state continues for apredetermined time.
 10. The electronic device of claim 1, furthercomprising a communication state detector configured to detect acommunication state of communication of packet data performed by thecommunication interface, wherein the controller is further configuredto: receive communication state information detected by thecommunication interface during a transmission of packet data using thefirst packet data configuration; and detect the communication statebased on the received communication state information.
 11. A method ofan electronic device for communicating packet data in a wirelesscommunication system, the method comprising: detecting a communicationstate using a first packet data configuration; and communicating anexternal electronic device using a second packet data configuration thatis different than the first packet data configuration, based on thecommunication state.
 12. The method of claim 11, wherein the firstpacket data configuration and the second packet data configurationcomprise at least one of a packet transmission rate, a number of framesper packet, or a compressed frame size.
 13. The method of claim 11,wherein detecting the communication state comprises detecting thecommunication state based on a retransmission rate of packet datatransmitted using the first packet data configuration.
 14. The method ofclaim 11, wherein detecting the communication state comprises, duringtransmission of the packet data using the first packet dataconfiguration, detecting the communication state based on a state of abuffer in which packet data temporarily waits in the electronic device.15. The method of claim 11, wherein detecting the communication statecomprises, during a transmission of the packet data using the firstpacket data configuration, detecting the communication state based onwhether a request for stopping the transmission of the packet data isreceived from the external electronic device.
 16. The method of claim11, wherein detecting the communication state comprises, during atransmission of packet data using the first packet data configuration,detecting the communication state based on a state of a buffer in whichpacket data temporarily waits in the electronic device and on whether arequest for stopping transmission of the packet data is received fromthe external electronic device.
 17. The method of claim 11, whereindetecting the communication state comprises detecting the communicationstate based on channel information associated with a channel in whichpacket data is transmitted using the first packet data configuration.18. The method of claim 11, further comprising: determining a packettransmission rate of transmittable packet data based on thecommunication state; and determining the second packet dataconfiguration based on the determined packet transmission rate.
 19. Themethod of claim 11, further comprising determining the second packetdata configuration based on whether the communication state continuesfor a predetermined time.
 20. The method of claim 11, wherein detectingthe communication state further comprises: receiving communication stateinformation during a transmission of the packet data using the firstpacket data configuration; and detecting the communication state basedon the received communication state information.